// 用户仓库
import { defineStore } from 'pinia';
import { ref } from 'vue';
import { staticRoutes } from '@/router/routes';
const useUserStore = defineStore('userStore', () => {
  const initUserState = () => ({
    token: '',
    userName: '',
    userAvatar: '',
    userId: '',
    menuRoutes: staticRoutes,
    permissionList: [],
    roles: [],
  });
  const userState = ref(initUserState());
  return { userState };
});

export default useUserStore;
